module compressor4_2 (
    input in1,
    input in2,
    input in3,
    input in4,
    input cin,
    output cout,
    output C,
    output S
);
    wire sum;
    assign {cout,sum}=in1+in2+in3;
    assign {C,S}=sum+in4+cin;
endmodule